package traverse;

import java.util.Set;

public class TwentyFourPointTest {
    public static void main(String[] args) throws InterruptedException {
        int[] cardArr = new int[]{5,5,6,9};

        TwentyFourPoint twentyFourPoint = new TwentyFourPoint();

        twentyFourPoint.count(new TwentyFourPoint.Solution(cardArr));

        Set<String> answers = twentyFourPoint.getAnswerList();

        displayAnswers(cardArr,answers);
    }

    public static void displayAnswers(int[] cardArr,Set<String> answers){
        for (int i : cardArr) {
            System.out.print(i + ",");
        }

        System.out.println("结果有：" + answers.size() + "种解决方案");

        for (String string : answers) {
            System.out.println(string);
        }
    }
}
